#ifndef TODOLIST_H
#define TODOLIST_H
//  File:         ToDoList.h
//  Author:       Scott Nordmann & Lauren Wallace
//  Description:  A class definition for the ToDoList.
#include "Task.h"
#include <vector>
#include <string>
#include <fstream>


class ToDoList
{
public:
	ToDoList();
	ToDoList(std::ifstream& ifsave);
	void shutDown(std::ofstream& ofsave);

	void createTask(const std::string& creator);
	void createTask(Task* tas);
	Task* ToDoList::createMail(const std::string& creator);
	void display();
	void orderList();
	void viewTask(Task& current);
	bool tagTask(Tag& currentTag);
	bool tagTask(Tag &currentTag ,const std::string& entryTitle);
	Task* addingTagDisplay();
	void deleteTask(Task& t);
	
	bool isEmpty();

private:
	std::vector<Task*> tasks;
};
inline bool ToDoList::isEmpty()
{
	return tasks.empty();
}
#endif